home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / GMS / GMSDev / Includes / system / tasks.i < prev    next >
Encoding:
Text File  |  1998-04-27  |  2.7 KB  |  73 lines

  1.     IFND SYSTEM_TASKS_I
  2. SYSTEM_TASKS_I  SET  1
  3.  
  4. **
  5. **  $VER: tasks.i (January 1998)
  6. **
  7. **  (C) Copyright 1996-1998 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include    'dpkernel/dpkernel.i'
  13.     ENDC
  14.  
  15. *****************************************************************************
  16. * Task object.
  17.  
  18. VER_TASK  = 1
  19. TAGS_TASK = ((ID_SPCTAGS<<16)|ID_TASK)
  20.  
  21.     STRUCTURE    DPKTask,HEAD_SIZEOF
  22.     APTR    GT_UserData        ;[RW] Pointer to user data, no restrictions.
  23.     APTR    GT_Name            ;[RI] Name of the task if specified. (READ ONLY)
  24.     APTR    GT_MasterPrefs     ;[--] Master preferences.
  25.     APTR    GT_ScreenPrefs     ;[--] Screen preferences.
  26.     APTR    GT_SoundPrefs      ;[--] Sound preferences.
  27.     APTR    GT_BlitterPrefs    ;[--] Blitter preferences.
  28.     APTR    GT_ResourceChain   ;[--] The resource chain, private.
  29.     LONG    GT_ReqStatus       ;[--] Used internally.
  30.     LONG    GT_BlitKey         ;[--] Used to store resource key.
  31.     LONG    GT_AudioKey        ;[--] Used to store resource key.
  32.     LONG    GT_ExecNode        ;[--] Task's exec node.
  33.     APTR    GT_DestructStack   ;[--] Pointer to self destruct exit stack.
  34.     APTR    GT_DestructCode    ;[--] Pointer to self destruct exit code.
  35.     BYTE    GT_AlertState      ;[--] On/Off.
  36.     BYTE    GT_Switched        ;[--] Set if task is in Switch().
  37.     WORD    GT_DebugStep       ;[--] Debug tree stepping position.
  38.     BYTE    GT_AwakeSig        ;[--] Signal for waking this task.
  39.     BYTE    GT_Pad             ;[--] Reserved.
  40.     WORD    GT_DPKTable        ;[-I] Type of jump table for dpkernel.
  41.     LONG    GT_TotalData       ;[R-] Total data memory in use.
  42.     LONG    GT_TotalVideo      ;[R-] Total video memory in use.
  43.     LONG    GT_TotalSound      ;[R-] Total sound memory in use.
  44.     LONG    GT_TotalBlit       ;[R-] Total blitter memory in use.
  45.     APTR    GT_Code            ;[-I] Start of program.
  46.     APTR    GT_Preferences     ;[--] Preferences directory.
  47.     APTR    GT_DPKBase         ;[R-] DPKBase.
  48.     APTR    GT_Author          ;[RI] Who wrote the program.
  49.     APTR    GT_Date            ;[RI] Date of compilation.
  50.     APTR    GT_Copyright       ;[RI] Copyright details.
  51.     APTR    GT_Short           ;[RI] Short description of program.
  52.     WORD    GT_MinVersion      ;[-I] Minimum required DPKernel version.
  53.     WORD    GT_MinRevision     ;[-I] Minimum required DPKernel revision.
  54.     APTR    GT_GVBase          ;[R-] GVBase.
  55.     APTR    GT_Args            ;[RI] Pointer to argument string */
  56.  
  57. TSK_Name        = (TAPTR|GT_Name)
  58. TSK_DPKTable    = (TWORD|GT_DPKTable)
  59. TSK_Code        = (TAPTR|GT_Code)
  60. TSK_Author      = (TAPTR|GT_Author)
  61. TSK_Date        = (TAPTR|GT_Date)
  62. TSK_Copyright   = (TAPTR|GT_Copyright)
  63. TSK_Short       = (TAPTR|GT_Short)
  64. TSK_DPKVersion  = (TWORD|GT_MinVersion)
  65. TSK_DPKRevision = (TWORD|GT_MinRevision)
  66. TSK_Args        = (TAPTR|GT_Args)
  67.  
  68. CS_OCS =  0
  69. CS_ECS =  1
  70. CS_AGA =  2
  71.  
  72.   ENDC    ;SYSTEM_TASKS_I
  73.